const mongoose = require("mongoose");

const schema = new mongoose.Schema({
    // 属性名:数据类型,
    movieId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "movies"
    }, // 电影 id
    cinemasId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "cinemas"
    }, // 影院 id
    theaterId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "theaters"
    }, // 放映厅 id
    showTime: String, // 放映时间 id
    price: Number, // 价格
})
mongoose.model("schedules", schema, "schedules");